package com.itany.shop.dao;

import com.itany.shop.entity.Product;

import java.util.List;

/**
 * @Author:石小俊
 * @Date:2022/11/16 11:14
 * @Version:1.0-SNAPSHOT
 * @Description:
 */
public interface ProductDao {

    public List<Product> selectAll();

    public List<Product> selectPage(Integer pageNo,Integer pageSize);

    /**
     * 查询商品总数
     * @return
     */
    public int selectCount();

    /**
     * 根据主键查询商品信息
     * @param id
     * @return
     */
    public Product selectById(Integer id);

}
